Platform Explorer / Nuxeo Platform LTS 2015 7.10

Contribution org.nuxeo.drive.layouts--widgets

This contribution is part of XML component org.nuxeo.drive.layouts inside nuxeo-drive-jsf-7.10.jar /OSGI-INF/nuxeodrive-layouts-contrib.xml

Extension Point

Extension point widgets of component WebLayoutManager.

Contributed Items

  • <widget name="syncRootTitle" type="listing_title_link">
          <labels>
            <label mode="any">user.center.nuxeoDrive.syncRoots.title</label>
          </labels>
          <translated>true</translated>
          <fields>
            <field/>
            <field>ref</field>
            <field>dc.description</field>
          </fields>
          <widgetModes>
            <mode value="any">view</mode>
          </widgetModes>
        </widget>
  • <widget name="syncRootPath" type="text">
          <labels>
            <label mode="any">user.center.nuxeoDrive.syncRoots.path</label>
          </labels>
          <translated>true</translated>
          <fields>
            <field>pathAsString</field>
          </fields>
          <widgetModes>
            <mode value="edit">view</mode>
          </widgetModes>
        </widget>
  • <widget name="driveMetadataPanel" type="documentActions">
          <properties widgetMode="view">
            <property name="category">DRIVE_METADATA_VIEW_PANEL</property>
          </properties>
          <controls mode="any">
            <control name="requireSurroundingForm">false</control>
            <control name="gridStyleClass">
              gridStyle12 compactLayout infoViewRight
            </control>
          </controls>
        </widget>
  • <widget name="driveMetadataTitleContainer" type="container">
          <handlingLabels>false</handlingLabels>
          <properties widgetMode="any">
            <property name="hideSubLabels">true</property>
            <property name="styleClass">infoViewTitle</property>
            <property name="display">block_top</property>
          </properties>
          <subWidgets>
            <widget name="driveMetadataTitle" type="text">
              <fields>
                <field>dc.title</field>
              </fields>
            </widget>
          </subWidgets>
        </widget>
  • <widget name="driveMetadataLayoutContainer" type="container">
          <handlingLabels>false</handlingLabels>
          <properties widgetMode="any">
            <property name="hideSubLabels">true</property>
            <property name="styleClass">infoViewInfoLayout</property>
            <property name="display">block_top</property>
          </properties>
          <subWidgets>
            <widget name="driveMetadataLayout" type="toggleableDocumentLayoutWithForms">
              <properties widgetMode="any">
                <property name="initialDocumentMode">drive</property>
                <property name="initialDocumentModeFallback">view</property>
                <property name="toggledDocumentMode">drive</property>
                <property name="toggledDocumentModeFallback">edit</property>
                <property name="hideDefaultActions">true</property>
                <property name="additionalActionsCategory">DRIVE_METADATA_VIEW_FORM_ACTION
                </property>
              </properties>
            </widget>
          </subWidgets>
        </widget>
  • <widget name="driveMetadataActions" type="documentActionsWithForms">
          <properties widgetMode="view">
            <property name="category">DRIVE_METADATA_VIEW_ACTION</property>
            <property name="styleClass">globalActionBar infoViewActions
            </property>
            <property name="subStyleClass">contextActions</property>
            <property name="overallDisplay">horizontal_block</property>
            <property name="actionsDisplay">icons</property>
            <property name="useAjaxForm">true</property>
            <property name="ignoreTemplateProperty">true</property>
            <property name="maxActionsNumber">5</property>
          </properties>
        </widget>

XML Source

<extension point="widgets" target="org.nuxeo.ecm.platform.forms.layout.WebLayoutManager">

    <widget name="syncRootTitle" type="listing_title_link">
      <labels>
        <label mode="any">user.center.nuxeoDrive.syncRoots.title</label>
      </labels>
      <translated>true</translated>
      <fields>
        <field/>
        <field>ref</field>
        <field>dc.description</field>
      </fields>
      <widgetModes>
        <mode value="any">view</mode>
      </widgetModes>
    </widget>

    <widget name="syncRootPath" type="text">
      <labels>
        <label mode="any">user.center.nuxeoDrive.syncRoots.path</label>
      </labels>
      <translated>true</translated>
      <fields>
        <field>pathAsString</field>
      </fields>
      <widgetModes>
        <mode value="edit">view</mode>
      </widgetModes>
    </widget>

    <widget name="driveMetadataPanel" type="documentActions">
      <properties widgetMode="view">
        <property name="category">DRIVE_METADATA_VIEW_PANEL</property>
      </properties>
      <controls mode="any">
        <control name="requireSurroundingForm">false</control>
        <control name="gridStyleClass">
          gridStyle12 compactLayout infoViewRight
        </control>
      </controls>
    </widget>

    <widget name="driveMetadataTitleContainer" type="container">
      <handlingLabels>false</handlingLabels>
      <properties widgetMode="any">
        <property name="hideSubLabels">true</property>
        <property name="styleClass">infoViewTitle</property>
        <property name="display">block_top</property>
      </properties>
      <subWidgets>
        <widget name="driveMetadataTitle" type="text">
          <fields>
            <field>dc.title</field>
          </fields>
        </widget>
      </subWidgets>
    </widget>

    <widget name="driveMetadataLayoutContainer" type="container">
      <handlingLabels>false</handlingLabels>
      <properties widgetMode="any">
        <property name="hideSubLabels">true</property>
        <property name="styleClass">infoViewInfoLayout</property>
        <property name="display">block_top</property>
      </properties>
      <subWidgets>
        <widget name="driveMetadataLayout" type="toggleableDocumentLayoutWithForms">
          <properties widgetMode="any">
            <property name="initialDocumentMode">drive</property>
            <property name="initialDocumentModeFallback">view</property>
            <property name="toggledDocumentMode">drive</property>
            <property name="toggledDocumentModeFallback">edit</property>
            <property name="hideDefaultActions">true</property>
            <property name="additionalActionsCategory">DRIVE_METADATA_VIEW_FORM_ACTION
            </property>
          </properties>
        </widget>
      </subWidgets>
    </widget>

    <widget name="driveMetadataActions" type="documentActionsWithForms">
      <properties widgetMode="view">
        <property name="category">DRIVE_METADATA_VIEW_ACTION</property>
        <property name="styleClass">globalActionBar infoViewActions
        </property>
        <property name="subStyleClass">contextActions</property>
        <property name="overallDisplay">horizontal_block</property>
        <property name="actionsDisplay">icons</property>
        <property name="useAjaxForm">true</property>
        <property name="ignoreTemplateProperty">true</property>
        <property name="maxActionsNumber">5</property>
      </properties>
    </widget>

  </extension>